package com.ktjy.actual.test;

import com.ktjy.actual.entity.Paper;
import com.ktjy.actual.service.PrintService;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Cheshi {

    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("employeeContext.xml");
        // 执行测试
        Paper paper = context.getBean("paper", Paper.class);
        PrintService service = context.getBean("printService", PrintService.class);
        service.print(paper);
    }
}
